<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stack</title>
    <link rel="stylesheet" href="../../model/element.css">
    <link rel="stylesheet" href="../../model/jsFn.css">
</head>
<body>
<div class="catalog">
    <h1>目录</h1>
    <ul>
        <li>
            <p><a href="#profile">stack</a></p>
            <ul>
                <li><p><a href="#jsFn_get">get() ----------得到当前页上下文</a></p></li>
            </ul>
        </li>
    </ul>
</div>
<div id="profile">
    <h2>对象简介:</h2>
    <p>获得上下文</p>
</div>
<div class="jsFnModel" id="jsFn_get">
    <h3>get:</h3>
    <div class="shape">
        <h3>函数使用样式</h3>
        <p>stack.get([index]) -> document</p>
    </div>
    <div class="profile">
        <h3>函数功能简介</h3>
        <p>获得指定页面的上下文</p>
    </div>
    <div class="version">
        <p>稳定性;2 - 稳定的</p>
        <p>新增于:v0.0.0</p>
    </div>
    <div class="params">
        <h3>参数列表:</h3>
        <ul>
            <li>
                <p>index</p>
                <p>&nbsp;int&nbsp;</p>
                <p>从最后一页面算,-1表示倒数第二个页面,默认为0</p>
            </li>
        </ul>
    </div>
    <div class="res">
        <h3>返回值:</h3>
        <p>document</p>
        <p>上下文,参考<a href="../../document/index.html">< document ></a></p>
    </div>
    <div class="code">
        <h3>例子</h3>
        <pre>
            <code>
                let content = stack.get();
                if(content.href === 'chat.xml'){
                    console.log('刷新聊天页面');
                }
            </code>
        </pre>
    </div>
    <div class="error">
        <h3>抛出错误</h3>
    </div>
</div>
<div class="author">
    <p>by-草草</p>
</div>
</body>
</html>